package com.woniu.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.woniu.product.model.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.product.param.*;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杜岷芫
 * @since 2024年07月12日
 */
public interface GoodsService extends IService<Goods> {

    void insertGoods(AddGoodsParam param)throws Exception;

    void enable(Integer goodsId)throws Exception;

    void disable(Integer goodsId)throws Exception;

    void addShopping(AddShoppingParam param)throws Exception;

    void delShopping(AddShoppingParam param)throws Exception;

    void updateShopping(UpdateShoppingParam param)throws Exception;

    void updateImage(UpdateImageParam param)throws Exception;

    void updateGoods(UpdateGoodsParam param)throws Exception;

    Page<Goods> pageGoods(PageGoodsParam param)throws Exception;
}
